package com.slipper.core.database.vo;

import java.util.ArrayList;
import java.util.List;

public class TableVO {
    /** 名称 */
    private String name;
    /** 扩展内容 */
    private String extra;

    private List<FieldVO> fieldList = new ArrayList<>();
    private List<IndexVO> indexList = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public List<FieldVO> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<FieldVO> fieldList) {
        this.fieldList = fieldList;
    }

    public List<IndexVO> getIndexList() {
        return indexList;
    }

    public void setIndexList(List<IndexVO> indexList) {
        this.indexList = indexList;
    }

    public void addField(FieldVO field) {
        this.fieldList.add(field);
    }


    public void addIndex(IndexVO index) {
        this.indexList.add(index);
    }
}
